import App from './App'
import uvUI from '@/uni_modules/uv-ui-tools'
import { Request } from '@/api/request.js'

import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';

export function createApp() {
  const app = createSSRApp(App)
  
  app.use(Pinia.createPinia());
  app.use(uvUI);
  Request(app)
  return { app }
}